package com.ihr360.excel.service.fallback;

import com.ihr360.commons.exception.Ihr360SpreadSheetAsynException;
import com.ihr360.excel.service.IrenshiFileDubboService;
import com.ihr360.excel.vo.ProgressContext;
import com.ihr360.excel.vo.ProgressContextFile;
import com.ihr360.excel.vo.StaffUniqueVo;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class IrenshiFileDubboServiceFallback implements IrenshiFileDubboService {

    @Override
    public ProgressContextFile getFile(String fileId, String progressKey) {
        throw new Ihr360SpreadSheetAsynException(progressKey, "获取文件失败！");
    }

    @Override
    public List<StaffUniqueVo> getStaffInfo(List<StaffUniqueVo> staffUniqueVos, String progressKey) {
        throw new Ihr360SpreadSheetAsynException(progressKey, "获取员工信息失败！");
    }

    @Override
    public String saveExcel(ProgressContext progressContext) {
        throw new Ihr360SpreadSheetAsynException(progressContext.getProgressKey(), "报错错误文件失败！");
    }
}
